package mws.utils;

import com.alibaba.fastjson2.JSON;

public class JsonUtils {

    public static String toJson(Object object) {
        return JSON.toJSONString(object);
    }

    public static <T> T parseJson(String json, Class<T> clazz) {
        return JSON.parseObject(json, clazz);
    }

}
